﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using CAPTS_Suite;
namespace CAPTS
{
    internal class OneMeasurementData
    {
		public OneMeasurementData(int chamberNumber) {
		
			for (int i = 0; i < chamberNumber; i++)
			{
                OneChamber oc = new OneChamber();
                chamber_list.Add(oc);

            }
		
		}

		public int year;
		public int month;
		public int day;

		public int DOY; // day in unit of Day Of Year


		// measurement duration
		public int t_start;
		public int t_end;

		private List<OneChamber> chamber_list = new List<OneChamber>();


		public List<OneChamber> get_measurement_list()
		{
			return chamber_list;

		}


		public void add_measurement(OneChamber om_ptr)
		{
            chamber_list.Add(om_ptr);

		}

		public void update()
		{
			int measureNum = chamber_list.Count;

			for (int i = 0; i < measureNum; i++)
			{
                chamber_list[i].update();
			}
		}


	}
}
